package com.ict.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ict.api.dto.IctSkuStockDTO;
import com.ict.api.entity.IctSkuStock;
import com.ict.api.result.ApiResponse;
import com.ict.api.vo.IctSkuStockVO;

import java.util.List;

/**
 * <p>
 * sku的库存 服务类
 * </p>
 *
 * @author wjp
 * @since 2025-03-23
 */
public interface IctSkuStockService extends IService<IctSkuStock> {

    List<IctSkuStockVO> getStockInfo(IctSkuStockDTO skuStockDTO);

    ApiResponse<String> deductStock(IctSkuStockDTO stockDeductDTO);

    ApiResponse<String> addStock(IctSkuStockDTO stockAddDTO);

    ApiResponse<String> lockStock(IctSkuStockDTO stockLockDTO);

    ApiResponse<String> unlockStock(IctSkuStockDTO stockUnlockDTO);

    ApiResponse<String> addStockInfo(IctSkuStockDTO stockAddDTO);
}
